package com.atguigu.mock.entity;

import com.atguigu.common.base.entity.AutoIdBase;
import com.atguigu.common.comment.Comment;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import java.time.LocalDateTime;

@Entity
@Getter
@Setter
@NoArgsConstructor
@Comment("顾客表")
public class Customer extends AutoIdBase {
    @Comment("用户名")
    private String username;
    @Comment("电话")
    private String phoneNumber;

    public Customer(LocalDateTime createTime, String username, String phoneNumber) {
        super(createTime);
        this.username = username;
        this.phoneNumber = phoneNumber;
    }
}
